import { getUserInfoUrl } from "@/command/apiTool";
import { useDetail } from "@/hooks";
import { useRoute } from "vue-router";

export const useRequest = () => {
  const route = useRoute()

    const [formData] = useDetail(
        getUserInfoUrl({
          dh: "/api/H5/richCourse/large/form",
          xh: "/api/H5/richCourse/small/form",
        },{id:route.query.id}),
        
         { 
          areas:'',
          title:'',
          content:'',
          id:'',
          logoUrl:'',
          path:'',
          userName:''
        }
        
      );
      return{
        formData
      }
}